import request from '@/utils/request'


// 查询我发起的审核
export function balstLibraryMy(query) {
    return request({
      url: '/app/balstLibrary/getList',
      method: 'post',
      data: query
    })
  }
// 查询待我审核
export function balstLibraryLoding(params) {
    return request({
      url: '/app/balstLibrary/listByMyslef/'+ params.userId,
      method: 'get',
      params
    })
  }

// 查已通过的审核车辆
export function balstLibraryPass(data) {
    return request({
      url: '/app/balstLibrary/getList',
      method: 'post',
      data: data
    })
  } 




// 查询炸药库来访人员入库审批列表
export function listBalstLibrary(query) {
  return request({
    url: '/app/balstLibrary/list',
    method: 'get',
    params: query
  })
}

// 查询炸药库来访人员入库审批详细
export function getBalstLibrary(flowNo) {
  return request({
    url: '/app/balstLibrary/' + flowNo,
    method: 'get'
  })
}

// 新增炸药库来访人员入库审批
export function addBalstLibrary(data) {
  return request({
    url: '/app/balstLibrary',
    method: 'post',
    data: data
  })
}

// 入库审批
export function updateBalstLibrary(data) {
  return request({
    url: '/app/balstLibrary',
    method: 'put',
    data: data
  })
}

// 删除炸药库来访人员入库审批
export function delBalstLibrary(flowNo) {
  return request({
    url: '/app/balstLibrary/' + flowNo,
    method: 'delete'
  })
}